package FRC2856.Robot;
/**
 * The RobotMap is a mapping from the ports sensors and actuators are wired into
 * to a variable name. This provides flexibility changing wiring, makes checking
 * the wiring easier and significantly reduces the number of magic numbers
 * floating around.
 */

public class RobotMap {
    // Analog Module 1 (Slot 1)
        // Analog (1-7)
        public static final int gyroChannel = 1;
        public static final int infraredLowerChannel = 6;
        public static final int infraredMiddleChannel = 7;
        public static final int infraredUpperChannel = 8;

    // Digital Module 1 (Slot 2 - Left)
        // I/O (1-14)
        public static final int dtLeftEncoderModule = 1, dtLeftEncoderChannelA = 1, dtLeftEncoderChannelB = 2;
        public static final int shtrLeftEncoderModule = 1, shtrLeftEncoderChannelA = 3, shtrLeftEncoderChannelB = 4;

        // PWM (1-10)
        public static final int dtLeftMotorModule = 1, dtLeftMotorChannel = 1;
        public static final int shtrLeftMotorModule = 1, shtrLeftMotorChannel = 2;
        public static final int captureUpperVictorPort = 1, captureUpperVictorChannel = 3;
        public static final int captureLowerVictorPort = 1, captureLowerVictorChannel = 4;
        public static final int bridgeArmVictorPort = 1, bridgeArmVictorChannel = 5;

        // Relay (1-8)
        public static final int lightRelayModule = 1, lightRelayPort = 1;

    // Digital Module 2 (Slot 6 - Right)
        // I/O (1-14)
        public static final int dtRightEncoderModule = 2, dtRightEncoderChannelA = 1, dtRightEncoderChannelB = 2;
        public static final int shtrRightEncoderModule = 2, shtrRightEncoderChannelA = 3, shtrRightEncoderChannelB = 4;
        public static final int capSensorModule = 2, capLowerSensorChannel = 5, capMiddleSensorChannel = 6, capUpperSensorChannel = 8;

        // PWM (1-10)
        public static final int dtRightMotorModule = 2, dtRightMotorChannel = 1;
        public static final int shtrRightMotorModule = 2, shtrRightMotorChannel = 2;
        public static final int aimingVictorSlot = 2, aimingVictorChannel = 3;
        public static final int cameraServoModule = 2, cameraServoChannel = 10;

        // Relay (1-8)

    // Autonomous
    public static final String fileName="AutonomousTextFile.txt";

    // CameraInfo
    public static final String cameraIP = "10.28.56.11";
   

    // Drivetrain
    public static final boolean dtLeftEncoderDirection = false,dtRightEncoderDirection = true;

    // Shooter
    public static final boolean shtrLeftEncoderDirection = true,shtrRightEncoderDirection = true;
    public static final double shtrEffortMax = 0.75;  // PWM (0-1)
    public static final double shtrSpeedMin = 15.0;   // feet per second
    public static final double shtrSpeedMax = 50.0;   // feet per second
}

